
import sys, os
from pepe.p_sqlpg.pg_export import main

if __name__ == "__main__":
    """ export pg table
    """
    if len(sys.argv) == 2: 
        main(db='work', tblmask=sys.argv[1])
    elif len(sys.argv) == 3: 
        main(db=sys.argv[1], tblmask=sys.argv[2])
    else: 
        print main.__doc__
        os.system('pause')


